package com.wzd.shoppingService.model.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * 店铺表
 *
 * @author WeiZiDong
 */
@Table(name = "`shop`")
@Data
@ApiModel("店铺表")
public class Shop implements Serializable {
    @Id
    @Column(name = "`id`")
    @ApiModelProperty(value = "记录id", example = "1")
    private Long id;
    @Column(name = "`create_by`")
    @ApiModelProperty(value = "创建人", example = "String")
    private String createBy;
    @Column(name = "`create_time`")
    @ApiModelProperty(value = "创建时间", example = "2019-05-05 17:55:31")
    private Date createTime;
    @Column(name = "`update_by`")
    @ApiModelProperty(value = "更新人", example = "String")
    private String updateBy;
    @Column(name = "`update_time`")
    @ApiModelProperty(value = "更新时间", example = "1556946359031")
    private Date updateTime;
    @Column(name = "`delete_flag`")
    @ApiModelProperty(value = "1:删除，0：未删除", example = "1")
    private Integer deleteFlag;
    @Column(name = "`status_flag`")
    @ApiModelProperty(value = "1:启用，0：禁用", example = "1")
    private Integer statusFlag;
    @Column(name = "`tb_shop_id`")
    @ApiModelProperty(value = "淘宝店铺ID", example = "1")
    private Long tbShopId;
    @Column(name = "`tb_shop_name`")
    @ApiModelProperty(value = "店铺名称", example = "String")
    private String tbShopName;
    @Column(name = "`tb_shop_type`")
    @ApiModelProperty(value = "店铺类型：1天猫2淘宝", example = "String")
    private String tbShopType;
    @Column(name = "`seller_name`")
    @ApiModelProperty(value = "卖家昵称", example = "String")
    private String sellerName;
    @Column(name = "`tb_shop_pic`")
    @ApiModelProperty(value = "店铺图片", example = "String")
    private String tbShopPic;
    @Column(name = "`tb_shop_url`")
    @ApiModelProperty(value = "店铺地址", example = "String")
    private String tbShopUrl;
    @Column(name = "`is_consumer_protection`")
    @ApiModelProperty(value = "是否加入消费者保障：加入", example = "String")
    private String isConsumerProtection;
    @Column(name = "`shop_dsr`")
    @ApiModelProperty(value = "店铺dsr评分", example = "1")
    private Integer shopDsr;
    @Column(name = "`seller_grade`")
    @ApiModelProperty(value = "卖家等级", example = "1")
    private Integer sellerGrade;
    @Column(name = "`refund_rate_is_ok`")
    @ApiModelProperty(value = "退款率是否低于行业均值", example = "1")
    private Integer refundRateIsOk;
    @Column(name = "`favorable rate_is_ok`")
    @ApiModelProperty(value = "好评率是否高于行业均值", example = "1")
    private Integer favorableRateIsOk;
    @Column(name = "`turnover_rate_is_ok`")
    @ApiModelProperty(value = "成交转化是否高于行业均值", example = "1")
    private Integer turnoverRateIsOk;

    private static final long serialVersionUID = 1L;
}
